<?php
class CartPanel_Form_ShippingCost extends Ext_Form
{
    public function init()
    {
        $this->setMethod('post');

		$this->addElement('date', 'date_from', array(
            'label'      => 'Fecha desde:',
            'required'   => true,
            'filters'    => array(),
            'validators' => array()
        ));
		
        $this->addElement('date', 'date_to', array(
            'label'      => 'Fecha hasta:',
            'required'   => true,
            'filters'    => array(),
            'validators' => array()
        ));
        
        $this->addElement('text', 'default_cost', array(
            'label'      => 'Costo por defecto: $',
            'required'   => true,
            'filters'    => array(),
            'validators' => array( 'int' )
        ));

        $this->addElement('text', 'additional_cost_item', array(
            'label'      => 'Costo defecto por item:',
            'required'   => true,
            'filters'    => array(),
            'validators' => array( 'int' )
        ));

        $this->addElement('text', 'shipping_cost_id', array(
            'label'      => 'Id de costo:',
            'required'   => true,
            'filters'    => array(),
            'validators' => array( 'int' )
        ));
        
        // Add the submit button
        $this->addElement( new Ext_Form_Element_Toolbar('Enviar' ) );
    }
}

